#ifndef WEB_H
#define WEB_H

#include <QObject>
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
class web : public QObject
{
    Q_OBJECT
public:
    explicit web(QObject *parent = nullptr);
    void start();
private slots:
    void onReadyRead();
    void connection();
    void onDisconnected();
    void first();


private:
    qint64 bytesAvailable() const;
    QTcpServer *server;
    QList<QTcpSocket*> tcpSktList;//用来存储所有客户端socket的链表


signals:
};

#endif // WEB_H
